package com.bz.backend.item.service.impl;

import com.bz.backend.item.feign.CommonItemFeignClient;
import com.bz.backend.item.service.ItemCategoryService;
import com.bz.pojo.TbItemCat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemCategoryServiceImpl implements ItemCategoryService {

    @Autowired
    private CommonItemFeignClient commonItemFeignClient;

    /**
     * 根据分类id查询子分类
     * @param id
     * @return
     */
    @Override
    public List<TbItemCat> selectItemCategoryByParentId(Long id) {
        return commonItemFeignClient.selectItemCategoryByParentId(id);
    }
}
